/****************************************************************
 *                                                              *
 * Copyright (c) 2001-2011 McObject LLC. All Rights Reserved.   *
 *                                                              *
 ****************************************************************/
 
#ifndef __EXTREME_API__H__
#define __EXTREME_API__H__

 
 #ifdef __cplusplus
extern "C" { 
#endif


#include <common.h>
#include <rsqldb.h>

#define  MEMORY_PAGE_SIZE      128
const char *db_name             = "rsqldb";

typedef struct aRecordData_
{
    unsigned int id;
    double longitude;
    double latitude;
    unsigned int dat;
    unsigned int tim;
} aRecordData;

MCO_RET connect_db(mco_db_h *db);
MCO_RET disconnect_db(mco_db_h db);
MCO_RET insert_db(mco_db_h db, aRecordData data);



#ifdef __cplusplus
} // extern "C" 
#endif

#endif
